/**
*┌──────────────────────────────────────────────────────────────┐
*│　描    述：SysDictionary服务接口                                                    
*│　作    者：sys                                              
*│　创建时间：2020-12-02 14:55:26   
*│　说    明：代码生成器生成   
*└──────────────────────────────────────────────────────────────┘
*/
using SXFramWork.Core;
using SXFramWork.Model;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace SXFramWork.Service
{
    /// <summary>
	/// SysDictionary服务接口
	/// </summary>
    public interface ISysDictionaryService
    {
        /// <summary>
        /// 查询
        /// </summary>
        /// <returns></returns>
        Task<IApiResult> Query(string name);
        /// <summary>
        /// 查询parentid=0 的数据
        /// </summary>
        /// <returns></returns>
        Task<IApiResult> QueryParents();
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<IApiResult> Add(DictionaryAddModel model);
        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<IApiResult> Delete( List< string> ids);
        /// <summary>
        /// 查询单个
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<IApiResult> GetById(string id);
        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<IApiResult> Update(DictionaryUpdateModel model);
    }
}